<?
foreach($result as $key=>$val){
?>
<tr>
	<td><input type="hidden" id="demand_id[]" name="demand_id[]" value="<?=$val->demand_id?>"><?
							$t_str="";
							if($val->type_rent=="1"){
									$t_str="租";
							}
							if($val->type_sell=="1"){
									$t_str="售";
							}
							if($val->type_consignment>0){
									$t_str="代銷";
							}
							echo $t_str;
						?></td>
	<td><?=$val->name?></td>
	<td><?=$val->building_area1."~".$val->building_area2?></td>
	<td><?=$val->parking_number?></td>
	<td width="40px">
	<a href="<?=site_url('/demand/data_edit/'.$val->demand_id)?>"><img src="/images/ico_edit_16.png" title="查看" border="0" /></a>
	</td>
</tr>
<?
}
?>		